/*
 * KKEditText.h
 *
 *  Created on: 2013-9-23
 *      Author: wanghua
 */

#ifndef KKEDITTEXT_H_
#define KKEDITTEXT_H_


#include "kaka_common.h"
#include "KKNode.h"
#include "XmlUtils.h"

USING_NS_CC;

using namespace std;

class KKEditText: public KKNode, public CCTextFieldTTF {

protected:
	KKEditText();

public:
	virtual ~KKEditText();


	virtual bool initCommonInfoWithXml(TiXmlElement* element, KKNode* parent);

	virtual bool initDelayInfoWithXml(TiXmlElement* element);

	virtual void saveToXml(TiXmlElement* element);

	virtual void setIsVisible(bool visible) {
		CCTextFieldTTF::setVisible(visible);

	}
	;
	virtual bool getIsVisible() {
		return CCTextFieldTTF::isVisible();
	}
	;

	KKNODE_FACTORY_METHOD(KKEditText,textWithElement);
};

KKNODE_PARSER_CLASS(KKEditTextParser,KKEditText,textWithElement)
#endif /* KKEDITTEXT_H_ */
